﻿using System.Collections.Generic;
using System.Reflection;

namespace GT
{
    public static partial class Extensions
    {
        public static IEnumerable<string> GetReferencesAssembliesPaths(this Assembly assembly)
        {
            foreach (AssemblyName assemblyName in assembly.GetReferencedAssemblies())
            {
                yield return Assembly.ReflectionOnlyLoad(assemblyName.FullName).Location;
            }
        }
    }
}
